let g:ycm_enable_semantic_highlighting = 1
let g:ycm_enable_inlay_hints = 1
let g:ycm_clear_inlay_hints_in_insert_mode = 1
let g:ycm_complete_in_comments = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_key_list_select_completion = ['<TAB>', '<Down>', '<M-j>']
let g:ycm_key_list_previous_completion = ['<S-TAB>', '<Up>', '<M-k>']
let g:ycm_key_list_stop_completion = ['<M-y>']

set updatetime=500
nnoremap gd <ESC>:YcmCompleter GoToDefinition<CR>
nnoremap gr <ESC>:YcmCompleter GoToReferences<CR>
nnoremap gi <ESC>:YcmCompleter GoToImplementation<CR>
nnoremap K  <ESC>:YcmCompleter GetDoc<CR>
